package com.angel.dao.health;

import com.angel.core.base.BaseMapper;
import com.angel.health.SysArea;
import com.angel.health.SysAreaExample;
import com.angel.health.SysAreaExt;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SysAreaMapper extends BaseMapper<SysArea>{
    int countByExample(SysAreaExample example);

    int deleteByExample(SysAreaExample example);

    int deleteByPrimaryKey(Integer id);

//    int insert(SysArea record);

    int insertSelective(SysArea record);

    List<SysArea> selectByExample(SysAreaExample example);

    SysArea selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysArea record, @Param("example") SysAreaExample example);

    int updateByExample(@Param("record") SysArea record, @Param("example") SysAreaExample example);

//    int updateByPrimaryKeySelective(SysArea record);

    int updateByPrimaryKey(SysArea record);
    
    List<SysArea> findAllArea(SysArea record);
    
    List<SysArea> findByPid(SysArea area);
    
    List<SysAreaExt> findUserById(SysArea area);
}